<template>
  <h1>El-下拉选框组件</h1>
  <el-select placeholder="请选择你喜欢的城市" v-model="city" style="width: 50%">
    <el-option label="长春" value="cc"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="杭州" value="hz"></el-option>
    <el-option label="北京" value="bj"></el-option>
  </el-select>
</template>

<script setup>
import {ref} from "vue";

const city = ref('');
</script>

<style scoped>

</style>